<header class="layout head padding-small">
    <a href="javascript:pageBack();" class="hBack float-left"></a>
    <h4 class="hTxt float-left text-center text-white">品牌加盟</h4>
    <a href="javascript:;" id="btnJdkey" class="hHlep float-right"></a>
</header>
<script type="text/javascript">
	$(function(){
		$(window).scroll(function(){
			var $header = $('header');
			if($(window).scrollTop() >= 44){
				$header.hide();
			}else{
				$header.show();
			};
		});
	})
</script>
<style>
    .container .line-small .x6 dd.x12{
        overflow: hidden;
        line-height: 18px;
        }
    .brand-cont a{height:15px;line-height:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
    </style>
<ul class="x12 list-unstyle padding fixed" style="border:0px;">
	<form method="get"> 
        <input type="hidden" name="act" value="brand">
        <li class="x9"><input type="text" name="keyword" class="input left_yj" value="<?php echo $_GET['keyword']?>" placeholder="输入你想要加盟的品牌"></li>
        <li class="x3"><button class="button right_yj bg-dot button-block">搜 索</button></li>
        </form>
</ul>
<div class="layout">
    <div class="container">

        <div class="line">
            <div class="x12 radius-big bg-white margin-small-top height margin-small-bottom padding-top padding-bottom">
                <?php if((!empty($output['type_class']) && is_array($output['type_class']))){?>
                <?php foreach ($output['type_class'] as $class){ ?>
                <div class="x3 text-center"><?php echo $class[0]['type_name'] ? $class[0]['type_name'] : '其他分类' ;?>：</div>
                <div class="x9  b-class">
                    <?php  foreach ($class as $key=>$val){?>
                    <a href="index.php?act=brand&bc_id=<?php echo $val['bc_id'];?>" class="<?php if($val['bc_id']==$_GET['bc_id']){echo "padding-right padding-left float-left bg-ef7f7e text-white radius";}else{echo "padding-right padding-left text-dot  float-left ";}?>"> <?php echo $val['bc_name'];?></a>
                        <?php  }?>
                </div>
                    <?php }?>
                <?php }?>
            </div>
            <script type="text/javascript">
                $(function(){
                    //分类选择时的样式变化
                    $('.b-class a').click(function(){
                        $(this).toggleClass('bg-ef7f7e text-white radius text-dot').siblings().removeClass('bg-ef7f7e text-white radius').addClass('text-dot');
                        $(this).parent('.x9').siblings('.x9').find('a').removeClass('bg-ef7f7e text-white radius').addClass('text-dot');
                    })
                })
            </script>


        </div><!--//line-->
        <?php if(!empty($output['brand_list']) && is_array($output['brand_list'])){?>
        <div class="line-small">
            <?php foreach($output['brand_list'] as $v){ ?>
            <dl class="x6 margin-small-bottom brand-cont">
                <dt class="x12 bg-white "><a href="index.php?act=brand&op=brand_detail&brand_id=<?php echo $v['brand_id']?>"><img class="img-responsive self-motion padding-small top_yj" src="<?php echo SiteUrl.DS.ATTACH_BRAND.DS.$v['brand_store_id'].DS.$v['brand_thumb']?>" onerror="this.src='<?php echo TEMPLATES_PATH;?>/images/touch2013/no_100_100.jpg'" onload="imgheqw(this)"></a></dt>
                <dd class="x12 bg-white  height-little">
                	<a class="layout text-center" href="index.php?act=brand&op=brand_detail&brand_id=<?php echo $v['brand_id']?>"><?php echo $v['brand_name']?></a>
                	<div class="padding-small text-small">
                		<p class="">咨询数：<span>0</span>条 </p>
                		<p class="">关注数：<span>341</span>人</p>
                		<!--<p class="brand-line"> <span class="bg-red"></span> </p>-->
                		<p class=""><span class="goodClass-nums text-red text-big">90%</span>人认为有前景</p>
                	</div>
                </dd>
            </dl>
        <?php }?>
        </div>
            <?php include 'page.php';?>
<?php }else{?>
            <ul> <li class="noTxt">
                    <div class="text-center text-gray padding-large">
                        <i class="icon-meh-o"></i>
                        <p>暂无相关的数据记录。</p>
                    </div>
                </li></ul>
        <?php }?>

    </div>

</div>


